/**
 * @(#)EntityConverterImpl.java Jan 11, 2010
 *   
 * Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
 * All  rights  reserved.   
 * TODO
 */

package com.wilmar.process.core.services.impl;

import org.jbpm.api.identity.Group;

import com.wilmar.process.core.services.api.IEntityConverter;
import com.wilmar.process.entity.Organization;
import com.wilmar.process.entity.Role;
import com.wilmar.process.entity.User;

/**
 * @author makubex Email:makubexnet@gmail.com
 * @version 1.0.0
 */
public class EntityConverterImpl implements IEntityConverter {

	/**
	 * @see com.wilmar.process.core.services.api.IEntityConverter#convert(com.wilmar.process.entity.Organization)
	 */
	public Group convert(Organization systemOrg) {
		return systemOrg;
	}

	/**
	 * @see com.wilmar.process.core.services.api.IEntityConverter#convert(com.wilmar.process.entity.Role)
	 */
	public Group convert(Role systemRole) {
		return systemRole;
	}

	/**
	 * @see com.wilmar.process.core.services.api.IEntityConverter#convert(com.wilmar.process.entity.User)
	 */
	public Group convert(User systemUser) {
		return systemUser;
	}

	/**
	 * @see com.wilmar.process.core.services.api.IEntityConverter#convertToUser(com.wilmar.process.entity.User)
	 */
	public org.jbpm.api.identity.User convertToUser(User systemUser) {
		return null;
	}

}
